package com.cskaoyan._05oop2._07static._01Student;

/**
 * @author Macro_Ray
 * @since 2024/3/9 15:19
 */
public class StudentTest {
    public static void main(String[] args) {
        Student.teacherName= "咸鱼学长";
        // 1.创建一个学生对象
        Student student1 = new Student();
        student1.setName("张三");
        student1.setAge(23);
        student1.setGender("男");
        // student1.teacherName= "咸鱼学长";

        student1.study();
        student1.show();

        System.out.println("=============");
        Student student2 = new Student();
        student2.setName("小芳");
        student2.setAge(22);
        student2.setGender("女");

        student2.study();
        student2.show();
    }
}
